]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
modalDialog: Make reactive
authorCarlos Garnacho <carlosg@gnome.org>
Wed, 17 Nov 2021 23:03:08 +0000 (00:03 +0100)
committerCarlos Garnacho <carlosg@gnome.org>
Sat, 29 Jan 2022 00:16:29 +0000 (01:16 +0100)
Some dialogs like the runDialog expect this actor to receive
key events while it is not reactive. Whatever that black magic was
it will no longer work.

Make the actor reactive, so it can simply handle key events.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2045>

js/ui/modalDialog.js

index caa874454ff8723031c8787d6c0cc337b16de0bd..4b3078ae5e4e015b3efa817ef7dc31e70940a83c 100644 (file)
@@ -32,9 +32,11 @@ var ModalDialog = GObject.registerClass({
 }, class ModalDialog extends St.Widget {
     _init(params) {
         super._init({ visible: false,
-                      x: 0,
-                      y: 0,
-                      accessible_role: Atk.Role.DIALOG });
+            reactive: true,
+            x: 0,
+            y: 0,
+            accessible_role: Atk.Role.DIALOG,
+        });
 
         params = Params.parse(params, { shellReactive: false,
                                         styleClass: null,